package cn.kgc.watch.service.impl;

import cn.kgc.watch.entity.Picture;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.kgc.watch.mapper.PictureMapper;
import cn.kgc.watch.service.PictureService;
@Service
public class PictureServiceImpl implements PictureService{

    @Resource
    private PictureMapper pictureMapper;

    @Override
    public Integer countMasterPic(Integer skuId) {
        return this.pictureMapper.selectCountMasterPic(skuId);
    }

    @Override
    public void addPic(Picture picture) {
        this.pictureMapper.insert(picture);
    }
}
